package com.lcxedu.notebook.service.impl;

import com.lcxedu.notebook.entity.User;
import com.lcxedu.notebook.mapper.UserMapper;
import com.lcxedu.notebook.service.UserMapperService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Title: UserServiceImpl
 * @Author: 李晨曦
 * @Date: 2025/6/11
 * 好好看 好好学 都能学会 都能学好
 * 我亦无他 唯手熟尔
 */
@Service
public class UserServiceImpl implements UserMapperService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User selectByUserNameANDPassword(String userName, String password) {
        return userMapper.selectByUserNameANDPassword(userName, password);
    }

    @Override
    public int insertSelective(User record) {
        return userMapper.insert(record);
    }

}
